import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'
import Login from '../views/Login.vue'
Vue.use(VueRouter)

const routes = [
  
    { path: '/', redirect: '/login' },
    { path: '/login', name: 'login', component: Login },
    {
      path: '/main',
     
      component: () => import('../views/Main.vue'),
      children:[
        {
          path: '/shou',
          component: () => import('../views/Shou.vue')
        },
        {
          path: '/2-2',
          component: () => import('../views/Publicity.vue')
        },
        {
          path: '/3-2',
          component: () => import('../views/teacherLevel.vue')
        },
        {
          path: '/3-3',
          component: () => import('../views/Good.vue')
        },
        {
          path: '/3-4',
          component: () => import('../views/Book.vue')
        },
        {
          path: '/3-5',
          component: () => import('../views/Charge.vue')
        },
        {
          path: '/3-6',
          component: () => import('../views/ConsultWait.vue')
        },
        {
          path: '/4-1',
          component: () => import('../views/Article.vue')
        },
        {
          path: '/4-2',
          component: () => import('../views/ArticleType.vue')
        },
        {
          path: '/4-3',
          component: () => import('../views/Course.vue')
        },
        
        {
          path: '/4-5',
          component: () => import('../views/courseProblem.vue')
        },
        {
          path: '/4-6',
          component: () => import('../views/CourseMark.vue')
        },
        {
          path: '/5-1',
          component: () => import('../views/HeartKnowledge.vue')
        },
        {
          path: '/5-3',
          component: () => import('../views/HeartMark.vue')
        },
        {
          path: '/5-4',
          component: () => import('../views/FM.vue')
        },
        {
          path: '/6',
          component: () => import('../views/Company.vue')
        }
      ]
      }

   
  
]

const router = new VueRouter({
  routes
})

export default router
